﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditableLabel.ascx.cs" Inherits="WebApplication1.UserControls.EditableLabel" %>

<asp:UpdatePanel ID="updatePanel" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Label ID="prefix" runat="server" CssClass="prefix" />
        <div class="editableContent">
            <asp:Label ID="lblContent" runat="server" />
            <asp:Panel ID="pnlEditVersion" runat="server" Style="display: none;">
                <asp:TextBox ID="txtContent" runat="server" />
                <asp:RequiredFieldValidator ID="reqContent" runat="server" ErrorMessage="Required" Display="Dynamic" ControlToValidate="txtContent" />
                <asp:Button ID="btnUpdate" runat="server" Text="Update" />
                <input type="button" id="btnCancel" runat="server" value="Cancel" />
            </asp:Panel>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
